
<div ng-controller='registerCtrl' class="container" ng-init="user={}">

    <div class="row">
        <form role="form" id="login-form" ng-submit="submit()">
            <div class="form-group">
                <label for="exampleInputEmail1">邮箱</label>
                <input type="text" class="form-control" ng-model="user.username" placeholder="">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" class="form-control" ng-model="user.password" placeholder="">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">确认密码</label>
                <input type="password" class="form-control" ng-model="user.password2" placeholder="">
            </div>
            <button type="submit" class="btn btn-default">
                注册
            </button> {{user.msg}}
        </form>
        
    </div>
</div>
